const HtmlWebpackPlugin = require('html-webpack-plugin')

module.exports = {
  mode: 'development',
  entry: './test/index.js',
  output: {
    clean: true
  },
  externals: {},
  devtool: 'eval-cheap-module-source-map',
  devServer: {
    host: 'fet-proxy.tongdao.cn',
    port: 3000,
    open: true,
    client: {
      logging: 'none',
      overlay: false
    }
  },

  plugins: [
    new HtmlWebpackPlugin({
      template: 'test/index.html',
      inject: 'body',
      scriptLoading: 'blocking'
    })
  ]
}
